package com.qianji.api;

import com.qianji.pojo.PrizeDto;
import com.qianji.utils.Result;
import com.qianji.vo.PrizeAddVO;
import com.qianji.vo.PrizeUpdateVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Author 钟丽诗
 * @Date 2021.3.15
 * 192.168.1.32
 */

@FeignClient(value = "qianji",url = "http://192.168.1.32:8888")
public interface PrizeApps {

    @PutMapping("prize/add")
    @ApiOperation("添加奖品")
    @ResponseBody
    Result addPrize(@RequestBody PrizeAddVO prizeAddVO);

    @PostMapping("prize/update")
    @ApiOperation("修改奖品")
    @ResponseBody
    Result deletActiveById(@RequestBody PrizeUpdateVO prizeUpdateVO );

    @PostMapping("prize/select")
    @ApiOperation("查询所有奖品")
    @ResponseBody
    Result selectAll(@RequestBody PrizeDto prizeDto);

}
